package entity;

import entity.myEnum.Status;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.io.Serializable;
import java.util.Date;

/**
 * (Appointments)实体类
 *
 * @author makejava
 * @since 2024-04-22 12:33:38
 */
public class Appointments implements Serializable {

    //也可以把门诊信息添加到appointments表中 来增加数据冗余度；丰富前端显示出来的信息

    private static final long serialVersionUID = 486159161523159267L;
    /**
     * 预约ID，主键
     */
    private Integer id;
    /**
     * 外键，关联到用户表的ID
     */
    private Integer userId;
    /**
     * 外键，关联到门诊信息表的ID
     */
    private Integer doctorsId;
    /**
     * 预约日期
     */
    private Date datetime;
    /**
     * 预约状态，枚举类型
     */
    @Enumerated(EnumType.STRING)
    private Status status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDoctorsId() {
        return doctorsId;
    }

    public void setDoctorsId(Integer doctorsId) {
        this.doctorsId = doctorsId;
    }

    public Date getDate() {
        return datetime;
    }

    public void setDate(Date date) {
        this.datetime = date;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}

